package com.team2.outpatient_sys.dao;

import com.team2.outpatient_sys.pojo.Medicine;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MedicineDao {
    //查询所有药品信息
    @Select("select * from medicine")
    public List<Medicine> findAllMedicine();

    //根据id查询药品信息
    @Select("select * from medicine where id = #{id}")
    public Medicine findAllById(Integer id);


}
